package com.lihang.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lihang.system.entity.Parents;
import com.lihang.system.mapper.ParentsMapper;
import com.lihang.system.service.IParentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ParentsServiceImpl extends ServiceImpl<ParentsMapper, Parents> implements IParentsService {
    @Autowired
    private ParentsMapper parentsMapper;

    @Override
    public List<Parents> queryStudentById(Integer stuId) {
        List<Parents> parents = parentsMapper.queryStudentById(stuId);
        return parents;
    }
}
